package com.作业.第八章作业.HomeWork05;

public class Worker extends Employ{
    public Worker(String name, double salary) {
        super(name, salary);
    }
    public void printsalary(){
        System.out.println("农民工 " + getName() + " 年薪为 : "+( getSalary()*12)+"RMB");
    }
}
